﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fashion.Models.Interface
{
    public interface IProductRepository
    {
        void AddNewProduct(Product product);
        Product GetProductById(int id);
        IEnumerable<Product> GetAllByCategoryId(int categoryId);
        void Delete(int id);
        void Update();

        ProductImage GetImageById(int id);
        string UploadImage(int productId, string extension);
        void DeleteImage(int id);
        void SetMainImage(int id, int productId);
    }
}
